import VueRouter from "vue-router"



export default new VueRouter({
    routes:[
        {
            path: '/login',
            name: 'login',
            component: () => import('../page/login.vue'),
            redirect:'/loginForm',
            children:[
                {
                    path:'/loginForm', name:'loginForm',component:()=> import('../page/loginForm.vue')
                }
            ]
        },
        {
            path: '/',
            name: 'Manage',
            component: () => import('../page/manage'),
            redirect: '/home',
            children:[
                {
                    path:'/home', name:'home', component:()=>import('../page/home')
                },
                {
                    path:'/text', name:'text', component:()=>import('../page/text')
                },
                {
                    path:'/adminUser', name:'adminUser', component:()=>import('../page/adminUser')
                },
                {
                    path:'/role', name:'role', component:()=>import('../page/role')
                },
                {
                    path:'/notice', name:'notice', component:()=>import('../page/notice')
                },
                {
                    path:'/addNotice', name:'addNotice', component:()=>import('../page/addNotice')
                },
                {
                    path:'/owner', name:'owner', component:()=>import('../page/owner')
                },
                {
                    path:'/feedback', name:'feedback', component:()=>import('../page/feedback')
                },
                {
                    path:'/moveRequest', name:'moveRequest', component:()=>import('../page/moveRequest')
                },
                {
                    path:'/property', name:'property', component:()=>import('../page/property')
                },
                {
                    path:'/pet', name:'pet', component:()=>import('../page/pet')
                },
                {
                    path:'/renovation', name:'renovation', component:()=>import('../page/renovation')
                },
                {
                    path:'/vehicle', name:'vehicle', component:()=>import('../page/vehicle')
                },
                {
                    path:'/visitor', name:'visitor', component:()=>import('../page/visitor')
                },
                {
                    path:'/repair', name:'repair', component:()=>import('../page/repair')
                },
                {
                    path:'/ownerInfo', name:'ownerInfo', component:()=>import('../page/ownerInfo')
                },
                {
                    path:'/propertyBinding', name:'propertyBinding', component:()=>import('../page/propertyBinding')
                },
                {
                    path:'/petBinding', name:'petBinding', component:()=>import('../page/petBinding')
                },
                {
                    path:'/createVehicle', name:'createVehicle', component:()=>import('../page/createVehicle')
                },
                {
                    path:'/feedbackInfo', name:'feedbackInfo', component:()=>import('../page/feedbackInfo')
                },
                {
                    path:'/moveRequestInfo', name:'moveRequestInfo', component:()=>import('../page/moveRequestInfo')
                },
                {
                    path:'/propertyInfo', name:'propertyInfo', component:()=>import('../page/propertyInfo')
                },
                {
                    path:'/petInfo', name:'petInfo', component:()=>import('../page/petInfo')
                },
                {
                    path:'/repairInfo', name:'repairInfo', component:()=>import('../page/repairInfo')
                },
                {
                    path:'/vehicleInfo', name:'vehicleInfo', component:()=>import('../page/vehicleInfo')
                },
                {
                    path:'/adminInfo', name:'adminInfo', component:()=>import('../page/adminInfo')
                }
            ]

        },

        
    ]
})